﻿using SpiderStudy.Utils;
using SpiderStudy.Utils.Currency;
using SpiderStudy.Utils.Currency.FileUtils;
using System.Collections.Generic;

namespace SpiderStudy.WebSite
{
    internal class SaveHelper
    {
        /// <summary>
        /// 下载完成后提示处理
        /// </summary>
        /// <param name="FloderPath"></param>
        public void DownloadComplted(string FloderPath)
        {
            bool TempFlage = MessageHelper.DialogResultAlert("缓存完成，打开文件夹？");
            if (TempFlage)
                FloderHelper.OpenFloder(FloderPath);
        }
        public void SaveList(string FloderPath, string FileName, List<string> TempList)
        {
            FloderHelper.FloderExits(FloderPath, true);
            FileHelper.WriteUTF8List(FloderPath + FileName, TempList);
            DownloadComplted(FloderPath);
        }
        

       
    }
}